import { defineStore } from 'pinia'
import { ActiveIndex } from './interface'


export const useActiveIndex = defineStore('activeIndex', {
    state: (): ActiveIndex => {
        return {
            ac_index: 1
        }
    },
    actions:{
        setActive(id:any) {
            this.ac_index = id
            console.log(this.ac_index)
        },
        getActive() {
            return this.ac_index
        },
    }
})